<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?>
<table width="100%" border="0" cellspacing="1" cellpadding="5">
<thead>
  <tr>
    <th height="25" bgcolor="#CCCCCC">产品图片</th>
    <th bgcolor="#CCCCCC">产品名称</th>
    <th bgcolor="#CCCCCC">订购数量</th>
    <th bgcolor="#CCCCCC">产品价格(￥)</th>
    <th bgcolor="#CCCCCC">小计（￥）</th>
  </tr>
  </thead>
  <tbody>
  <?php foreach($cart as $row){?>
  <tr>
    <td><a href="<?php echo site_url(CTL_FOLDER.'product/detail/'.$row->product_id);?>" target="_blank"><img src="<?php echo base_url().$row->pic_path;?>" width="90" border="0" /></a></td>
    <td><a href="<?php echo site_url(CTL_FOLDER.'product/detail/'.$row->product_id);?>" target="_blank"><?php echo $row->title;?></a></td>
    <td><?php echo $row->quantity;?></td>
    <td><?php echo $row->price;?></td>
    <td><?php echo $row->subtotal;?></td>
  </tr>
  <?php }?>
  <tr>
    <td height="25">&nbsp;</td>
    <td>&nbsp;</td>
    <td align="right">&nbsp;</td>
    <td align="right">总额：</td>
    <td><?php echo $total_price;?></td>
  </tr>
  </tbody>
</table>
